package gae.google.tcserver.model;

/**
 * The <tt>CalendarBean</tt> class provides getters and setters for
 * calendar data
 *
 * @author Lars Friberg
 *
 * @date 2011-02-04
 */
public class CalendarBean {

	// team data
	private String monthName = null;
	private int month = 0;
	private int year = 0;
	private int days = 0;
	private int week = 0;
	private int weekStartDay = 0;
	private int totalWeeks = 0;

	/**
	 * constructor
	 */
	public CalendarBean() {
	}

	/**
	 * set month name
	 * 
	 * @param monthName the month name
	 */
	public void setMonthName(String monthName) {
		this.monthName = monthName;
	}

	/**
	 * get month name
	 * 
	 * @return monthName the name of month
	 */
	public String getMonthName() {
		return this.monthName;
	}
	
	/**
	 * set month
	 * 
	 * @param month the month, first month is 0
	 */
	public void setMonth(int month) {
		this.month = month;
	}

	/**
	 * get month
	 * 
	 * @return month the month, first month is 0
	 */
	public int getMonth() {
		return this.month;
	}

	/**
	 * set year
	 * 
	 * @param year the year
	 */
	public void setYear(int year) {
		this.year = year;
	}

	/**
	 * get year
	 * 
	 * @return year the year
	 */
	public int getYear() {
		return this.year;
	}
	
	/**
	 * get week start day
	 * 
	 * @return weekStartDay the first day of a week
	 */
	public int getWeekStartDay() {
		return this.weekStartDay;
	}
	
	/**
	 * set week start day
	 * 
	 * @param weekStartDay the first day of a week
	 */
	public void setWeekStartDay(int weekStartDay) {
		this.weekStartDay = weekStartDay;
	}

	/**
	 * set number of days in current month
	 * 
	 * @param days the number of days in the current month
	 */
	public void setNoOfDaysInMonth(int days) {
		this.days = days;
	}

	/**
	 * get number of days in current month
	 * 
	 * @return days the number of days in current month
	 */
	public int getNoOfDaysInMonth() {
		return this.days;
	}

	/**
	 * set week
	 * 
	 * @param week the week number of a year
	 */
	public void setWeekYear(int week) {
		this.week = week;
	}

	/**
	 * get week
	 * 
	 * @return week the current week of the current year
	 */
	public int getWeekYear() {
		return this.week;
	}

	/**
	 * set total weeks
	 * 
	 * @param totalWeeks the total weeks of a month
	 */
	public void setTotalWeeksInMonth(int totalWeeks) {
		this.totalWeeks = totalWeeks;
	}

	/**
	 * get total weeks
	 * 
	 * @return totalWeeks the total weeks of a month

	 */
	public int getTotalWeeksInMonth() {
		return this.totalWeeks;
	}
}
